#pragma once
#include <zGraphicsConfig.hpp>
#include <common.hpp>
#include "VBODescript.hpp"
#include <Utility/Uncopyable.hpp>

namespace zzz{

class ZGRAPHICS_CLASS ElementVBO : public Uncopyable {
public:
  ElementVBO();
  ~ElementVBO();
  bool Create(void *data,int numOfElement,VBODescript &vbodesc,GLenum usage=GL_STATIC_DRAW);
  bool Bind();
  bool Unbind();
  GLuint VBO_;
private:
  bool binded;
};

}